<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
function modifyItem(){
	var frm = document.getElementById("frm");
	frm.action = '<c:url value="/board/modifyItem"/>';
	frm.submit();
}

</script>

</head>
<body>
<form id="frm" method="post">
<input type="hidden" name="boardCode">
	<table>
		<tr>
			<td>제목</td>
			<td><input type="text" id="bdTitle" name="bdTitle" value='<c:out value="${result.bdTitle}"/>'></td>
		</tr>
		<tr>
			<td>내용</td>
			<td><textarea rows="15" cols="8" id="bdContents" name="bdContents"><c:out value="${result.bdContents }"/></textarea> </td>
		</tr>
	</table>
	
	<input type="submit">
	<input type="button" value="수정" onclick="javascript:modifyItem()">
<%-- 	<input type="button" value="삭제" onclick="javascript:deleteItem(${result.seq })"> --%>
</form>
</body>
</html>